#ifndef __FLASH_H
#define __FLASH_H

#include "main.h"

/* Define --------------------------------------------------------------------*/
#define FLASH_WAIT_TIMEOUT  0xFFFE

/* Typedef -------------------------------------------------------------------*/

void Erase_Flash(uint16_t addr);
void Write_Flash(uint16_t addr, uint8_t *buffer, uint8_t length);
void Read_Flash(uint16_t addr, uint8_t *buffer, uint8_t length);

#endif

